package com.simen.hellobytes.log;

/**
 * Created on 2021/10/30 16:44.
 *
 * @author Simen
 */
public class Log {

    private static final String TAG = "Log";

    private static boolean DEBUG = false;

    public static void setDEBUG(boolean DEBUG) {
        Log.DEBUG = DEBUG;
    }

    public static void i(String message) {
        if (DEBUG) {
            System.out.println(message);
        }
    }

    public static void e(String message) {
        if (DEBUG) {
            System.err.println(message);
        }
    }

    public static void i(String tag, String message) {
        if (DEBUG) {
            System.out.println(tag + " " + message);
        }
    }

    public static void e(String tag, String message) {
        if (DEBUG) {
            System.err.println(tag + " " + message);
        }
    }

}
